#include <stdio.h>
#include "Rational.c"

int main(){
	Rational T1,T2,Res;

	InitRational(&T1,1,2);
	PutRational(&T1);
	InitRational(&T2,1,3);
	PutRational(&T2);

	Addition(&T1,&T2,&Res);
	PutRational(&Res);

	Subtraction(&T1,&T2,&Res);
	PutRational(&Res);

	Multiplication(&T1,&T2,&Res);
	PutRational(&Res);

	Devision(&T1,&T2,&Res);
	PutRational(&Res);

	printf("%d\n",Compare(&T1,&T2));
}